package com.jzo2o.foundations.task;

import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class DemoTask {
    /**
     * 测试定时任务
     */
    @XxlJob("demoJob")
    public void testTask() {
        log.info("测试定时任务开始执行...");
    }
}
